home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0" encoding="utf-8"?>
- <html><head><title>Fix Function [Runtime]</title><meta name="filename" content="text/sbasic/common/03080501"/><meta name="language" content="en-US"/><help:css-file-link xmlns:help="http://openoffice.org/2000/help"/><!--The CSS style header method for setting styles--><style type="text/css">
-
- p.P1{
- }
- p.P2{
- }
- span.T1{
- font-weight:bold;}
- </style></head><body>
-
-
- <help:to-be-embedded Eid="fix" xmlns:help="http://openoffice.org/2000/help">
- <p class="Head1"><help:link Id="66483">Fix Function [Runtime]</help:link></p>
- <p class="Paragraph">Returns the integer value of a numeric expression by removing the fractional part of the number.</p>
- </help:to-be-embedded>
- <p class="Paragraph"><span class="T1">Syntax</span>:</p>
- <p class="Paragraph">Fix (Expression) <help:key-word value="Fix" tag="kw66483_1" xmlns:help="http://openoffice.org/2000/help"/></p>
- <p class="Paragraph"><span class="T1">Return value</span>:</p>
- <p class="Paragraph">Double</p>
- <p class="Paragraph"><span class="T1">Parameter</span>:</p>
- <p class="Paragraph">Expression: Numeric expression from which to return the integer value.</p>
- <p class="P2">Example:</p>
- <p class="PropText">sub ExampleFix</p>
- <p class="PropText">Print Fix(3.14159) REM returns 3.</p>
- <p class="PropText">Print Fix(0) <text:s text:c="6" xmlns:text="http://openoffice.org/2000/text"/>REM returns 0.</p>
- <p class="PropText">Print Fix(-3.14159)REM returns -3.</p>
- <p class="PropText">end sub</p>
- </body></html>